package model

import (
	"time"
)

type UpsRunInfo struct {
	Tm     time.Time `gorm:"primaryKey"`
	Stcd   string    `gorm:"primaryKey;size:16"`
	Pstm   float64   `gorm:"type:float;precision:5"`
	RemTm  float64   `gorm:"type:float;precision:5"`
	RemCap float64   `gorm:"type:float;precision:3"`
	BatU   float64   `gorm:"precision:5;scale:1"`
	BatI   float64   `gorm:"precision:5;scale:1"`
	Tmp    float64   `gorm:"precision:3"`
	Iu     float64   `gorm:"type:float;precision:5"`
	Ifq    float64   `gorm:"type:float;precision:4;scale:1"`
	Ofq    float64   `gorm:"type:float;precision:4;scale:1"`
	Ou     float64   `gorm:"type:float;precision:5"`
	Lp     float64   `gorm:"type:float;precision:3"`
	Bfq    float64   `gorm:"type:float;precision:4;scale:1"`
}

func (UpsRunInfo) TableName() string {
	return "dse_ups_runinfo_r"
}

type Slave struct {
	Stcd string
	Ip   string
}
